package com.youkeyi.ddy.cloud.common.api.basic.crm.order;

import com.youkeyi.ddy.cloud.common.api.basic.crm.order.dto.CrmCustomerOrderListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.crm.order.param.*;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * CrmCustomerOrderCloudService
 *
 * @Author liuxiawang
 * @Date 2024/3/1 10:54 AM
 * @Location shenzhen.china
 */
@RestController
@FeignClient(value = "YOUKEYI-DDY-CLOUD-BASIC-CRM", fallback = CrmCustomerOrderCloudServiceFallback.class)
@RequestMapping("/crm/customer/order")
public interface CrmCustomerOrderCloudService {

    /**
     * 查询客户订单列表.
     *
     * @param param the param
     * @return the customer input config list cloud dto
     */
    @PostMapping(value = "/query")
    public abstract CrmCustomerOrderListCloudDto query(@RequestBody CrmCustomerOrderQueryCloudParam param);

    /**
     * 新增客户订单.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/create")
    public abstract ResponseContent create(@RequestBody CrmCustomerOrderCreateCloudParam param);

    /**
     * 编辑客户订单.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/update")
    public abstract ResponseContent update(@RequestBody CrmCustomerOrderUpdateCloudParam param);

    /**
     * 删除客户订单.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/delete")
    public abstract ResponseContent delete(@RequestBody CrmCustomerOrderDeleteCloudParam param);
    
}
